package com.ruoyi.ncpsy.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 农产品管理对象 ncpsy_area_product
 * 
 * @author ruoyi
 * @date 2025-08-29
 */
public class NcpsyAreaProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 作物ID */
    private Long cropId;

    /** 产品ID */
    private Long productId;

    /** 产地ID */
    private Long areaId;

    /** 用户ID */
    private Long userId;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 上架状态 */
    @Excel(name = "上架状态")
    private String currentStatus;

    public String getCurrentStatus() {
        return currentStatus;
    }

    public void setCurrentStatus(String currentStatus) {
        this.currentStatus = currentStatus;
    }

    /** 计划开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 计划结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reapTime;

    /** 作物昵称 */
    @Excel(name = "作物昵称")
    private String cropName;

    /** 预计总产量 */
    private BigDecimal estimatedTotalYield;

    /** 实际总产量 */
    private Long totalYield;

    /** 产量单位 */
    private String yieldUnit;

    /** 种植面积 */
    private BigDecimal plantingAravage;

    /** 交易哈希 */
    @Excel(name = "交易哈希")
    private String hash;

    /** 零售价格 */
    private BigDecimal  suggestedRetailPrice;

    public BigDecimal getSuggestedRetailPrice() {
        return suggestedRetailPrice;
    }

    public void setSuggestedRetailPrice(BigDecimal suggestedRetailPrice) {
        this.suggestedRetailPrice = suggestedRetailPrice;
    }

    public void setCropId(Long cropId)
    {
        this.cropId = cropId;
    }

    public Long getCropId() 
    {
        return cropId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }

    public void setReapTime(Date reapTime) 
    {
        this.reapTime = reapTime;
    }

    public Date getReapTime() 
    {
        return reapTime;
    }

    public void setCropName(String cropName)
    {
        this.cropName = cropName;
    }

    public String getCropName()
    {
        return cropName;
    }

    public void setEstimatedTotalYield(BigDecimal estimatedTotalYield) 
    {
        this.estimatedTotalYield = estimatedTotalYield;
    }

    public BigDecimal getEstimatedTotalYield() 
    {
        return estimatedTotalYield;
    }

    public void setTotalYield(Long totalYield) 
    {
        this.totalYield = totalYield;
    }

    public Long getTotalYield() 
    {
        return totalYield;
    }

    public void setYieldUnit(String yieldUnit) 
    {
        this.yieldUnit = yieldUnit;
    }

    public String getYieldUnit() 
    {
        return yieldUnit;
    }

    public void setPlantingAravage(BigDecimal plantingAravage) 
    {
        this.plantingAravage = plantingAravage;
    }

    public BigDecimal getPlantingAravage() 
    {
        return plantingAravage;
    }

    public void setHash(String hash) 
    {
        this.hash = hash;
    }

    public String getHash() 
    {
        return hash;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cropId", getCropId())
            .append("productId", getProductId())
            .append("areaId", getAreaId())
            .append("userId", getUserId())
            .append("status", getStatus())
            .append("beginTime", getBeginTime())
            .append("reapTime", getReapTime())
            .append("cropName", getCropName())
            .append("estimatedTotalYield", getEstimatedTotalYield())
            .append("totalYield", getTotalYield())
            .append("yieldUnit", getYieldUnit())
            .append("plantingAravage", getPlantingAravage())
            .append("hash", getHash())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
